/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.pig4cloud.pig.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig4cloud.pig.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 
 *
 * @author pig code generator
 * @date 2022-04-20 20:58:25
 */
@Data
@TableName("staff")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "")
public class Staff extends BaseEntity {

    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(name="ID")
    private Integer id;

    /**
     * 编号
     */
    @Schema(name="编号")
    private String code;

    /**
     * 姓名
     */
    @Schema(name="姓名")
    private String name;

    /**
     * 性别
     */
    @Schema(name="性别")
    private Integer sex;

    /**
     * 出生年月
     */
    @Schema(name="出生年月")
	@JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
    private Date birthday;

    /**
     * 民族
     */
    @Schema(name="民族")
    private String race;

    /**
     * 籍贯
     */
    @Schema(name="籍贯")
    private String nativeplace;

    /**
     * 出生地
     */
    @Schema(name="出生地")
    private String birthplace;

    /**
     * 入党时间
     */
    @Schema(name="入党时间")
	@JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
	private Date partydate;

    /**
     * 参加工作时间
     */
    @Schema(name="参加工作时间")
	@JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
	private Date workdate;

    /**
     * 进报社工作时间
     */
    @Schema(name="进报社工作时间")
	@JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
	private Date entrancedate;

    /**
     * 部门(单位)
     */
    @Schema(name="部门(单位)")
    private String department;

    /**
     * 身份
     */
    @Schema(name="身份")
    private String status;

    /**
     * 照片
     */
    @Schema(name="照片")
    private String photo;

    /**
     * 简历
     */
    @Schema(name="简历")
    private String resume;

    /**
     * 聘任情况（0-集团正式，1-二级单位招聘）
     */
    @Schema(name="聘任情况（0-集团正式，1-二级单位招聘）")
    private Integer position;

    /**
     * 审核状态（0-未审核，1-已审核）
     */
    @Schema(name="审核状态（0-未审核，1-已审核）")
    private Integer verified;

    /**
     * 奖惩情况
     */
    @Schema(name="奖惩情况")
    private String rewards;

    /**
     * 年度考核结果
     */
    @Schema(name="年度考核结果")
    private String assessments;

    /**
     * 任免理由
     */
    @Schema(name="任免理由")
    private String reason;

    /**
     * 家庭主要成员及重要社会关系
     */
    @Schema(name="家庭主要成员及重要社会关系")
    private String connections;


}
